package cn.edu.sjtu.se.dslab.service;

import java.util.List;

import cn.edu.sjtu.se.dslab.action.bean.PageBean;
import cn.edu.sjtu.se.dslab.component.method.ComponentInterface;
import cn.edu.sjtu.se.dslab.exception.DBException;

public interface IComponentInterfaceService {
	public boolean addComponentInterface(ComponentInterface componentInterface);

	public boolean deleteComponentInterfaceById(long id);
	
	public boolean deleteComponentInterfaceByUri(String uri);
	
	public boolean deleteComponentInterface(ComponentInterface componentInterface);
	
	public ComponentInterface getComponentInterfaceById(long id);
	
	public ComponentInterface getComponentInterfaceByUri(String uri);

	public List<ComponentInterface>  getAllComponentInterface();
	
	public List<ComponentInterface>  getComponentInterfaceByProperty(String text);
	
	public List<ComponentInterface>  getComponentInterfaceByType(String type);
	
	public PageBean<ComponentInterface> getPageBean(int pageNo) throws DBException;
	
	public boolean updateComponentInterface(
			ComponentInterface componentInterface);
}
